package com.mbl.base.modular.mall.service;

import com.mbl.base.modular.mall.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 优惠券信息及规则表 服务类
 * </p>
 *
 * @author lwj
 * @since 2020-03-22
 */
public interface ICouponService extends IService<Coupon> {

    /**
     * 获取符合条件的优惠卷
     * @param userId
     * @param couponId
     * @param userCouponId
     * @param checkedGoodsPrice
     * @return
     */
    Coupon checkCoupon(Long userId, Long couponId, Long userCouponId, BigDecimal checkedGoodsPrice);
}
